package com.sca.point.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Getter;
import lombok.Setter;

/**
 * @author liuxianfei
 * @since 2020/10/30 10:46
 */
@Setter
@Getter
public abstract class AbstractEntity<T extends Model<T>> extends Model<T> {

    private static final long serialVersionUID = 3858892576496651252L;

    @TableId(value = "id", type = IdType.AUTO)
    protected Long id;

    @Version
    protected Integer version;

}
